Submission #1871394
Source Code Expand
#include <cstdio> #include <iostream> #include <vector> #include <queue> #include <utility> #include <map> #include <set> #include <algorithm> #define REP(i, a, b) for (int i=a; i <b; i++) #define F first #define S second using namespace std; typedef long long ll; typedef vector< int > vi; int main() { int a, b; scanf("%d %d", a, b); printf("%d %d\n",b, a); return 0; }
Submission Info
Submission Time | |
---|---|
Task | A - スワップ |
User | siero |
Language | C++14 (GCC 5.4.1) |
Score | 0 |
Code Size | 414 Byte |
Status | RE |
Exec Time | 100 ms |
Memory | 256 KB |
Compile Error
./Main.cpp: In function ‘int main()’: ./Main.cpp:21:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 2 has type ‘int’ [-Wformat=] scanf("%d %d", a, b); ^ ./Main.cpp:21:24: warning: format ‘%d’ expects argument of type ‘int*’, but argument 3 has type ‘int’ [-Wformat=] ./Main.cpp:21:25: warning: ignoring return value of ‘int scanf(const char*, ...)’, declared with attribute warn_unused_result [-Wunused-result] scanf("%d %d", a, b); ^
Judge Result
Set Name | All | ||
---|---|---|---|
Score / Max Score | 0 / 100 | ||
Status |
|
Set Name | Test Cases |
---|---|
All | sample_01.txt, sample_02.txt, test_13_69.txt, test_16_44.txt, test_40_40.txt, test_49_31.txt, test_51_74.txt, test_83_60.txt |
Case Name | Status | Exec Time | Memory |
---|---|---|---|
sample_01.txt | RE | 100 ms | 256 KB |
sample_02.txt | RE | 98 ms | 256 KB |
test_13_69.txt | RE | 97 ms | 256 KB |
test_16_44.txt | RE | 98 ms | 256 KB |
test_40_40.txt | RE | 96 ms | 256 KB |
test_49_31.txt | RE | 97 ms | 256 KB |
test_51_74.txt | RE | 96 ms | 256 KB |
test_83_60.txt | RE | 96 ms | 256 KB |